<template>
    <div class="typeright_list_content">
        <div v-for="( item ,i ) of content" :key="'ct'+i" @click="GotoComment(item)">
            <div>
                <img :src="item.img" alt="">
            </div>
            <p>{{ item.title }}</p>
            <div>
                <div><i>{{ item.price |addRmb }}</i></div>
                <div><span>{{item.cfav}}&nbsp;</span><i class="iconfont icon-shoucang"></i></div>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    data() {
        return {};
    },
    props:{
        content:null
    },
    methods:{
        GotoComment(data){
            this.$router.push({name:"PageComment",params:{
               comment:data
           }})
        }
    },
    components: {}
};
</script>

<style lang='less' scoped>
.typeright_list_content {
    height:100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    >div{
        width: 268px;
        height: 450px;
        margin-top:20px;
        > div:first-child {
            width: 100%;
            height: 360px;
            position: relative;
            img {
                width: 100%;
                height: 360px;
            }
        }
        p {
            margin-top: 10px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        > div:last-child {
            width: 100%;
            display: flex;
            height:30px;
            margin-top:20px;
            justify-content: space-between;
            > div:first-child {
                width: 100px;
                i {
                    font-style: normal;
                }
            }
        }
    }
    
}
</style>
